package org.overload;

public class OverLoadDemo {
    public static void main(String[] args) {
        fire();
        fire("Japan");
        fire("Japan",5);
    }
    public static void fire(){
        System.out.println("默认发射武器");
    }
    public static void fire(String address){
        System.out.println("发射武器到："+address);
    }
    public static void fire(String address,int number){
        System.out.println("发射"+number+"枚武器到"+address);
    }
}
